package com.zzs.server.pojo.dto.test;

import com.zzs.common.core.validation.ValidJsonArray;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zzs
 * @date 2025/03/18
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class SaveTestCaseDTO {
    @NotNull(message = "添加测试用例必须指定题目")
    private Long problemId;

    @NotBlank(message = "测试用例不能为空")
    @ValidJsonArray
    private String testCase;
}
